<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Validform/5.3.2/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/style-q.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/Project.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/jedate.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/drop-down.css" />
    <!--时间插件-->
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>补开信息查询</title>
</head>
<body data-id="51">
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页  <span class="c-gray en">&gt;</span>发票管理<span class="c-gray en">&gt;</span>补开信息查询<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <form class="ml-20 mr-20" id="coupon-add">
        <div class="bg-1 bk-gray pd-20 mb-20">
            <div class="va-m lh-20 f-16 pb-15">
                <strong>选择筛选内容</strong>
            </div>
            <div class="line"></div>
            <table class="table-hover table_li ml-10 mb-10 table mt-10">
                <thead class="text-l">
                <tr>
                    <td class="col-3-1">
                        <div class="row">
                            <label class="form-label f-l lh-26 text-r w-60">订单号：</label>
                            <div class="formControls f-l">
                                <input type="text" id="order_id" class="input-text radius ml-10 w-200" placeholder="输入订单号" oninput = "value=value.replace(/[\W]/g,'')" maxlength="12">
                            </div>
                            <span class="Validform_checktip"></span>
                        </div>
                    </td>
                    <td class="col-3-1">
                        <div class="row">
                            <label class="form-label f-l lh-26 text-r w-60">发票状态：</label>
                            <select id="invoice_status" class="select radius f-l ml-10 w-150" size="1" style="height: 30px;">
                                <option value="">全部</option>
                                <option value="10">待开</option>
                                <option value="40">已开</option>
                                <option value="30">部分开</option>
                                <option value="50">已发</option>
                            </select>
                        </div>
                    </td>
                    <td class="col-3-1">
                        <div class="row">
                            <label class="form-label f-l lh-26 text-r w-60">发票类型：</label>
                            <select id="invoice_type" class="select radius f-l ml-10 w-150" size="1" style="height: 30px;">
                                <option value="">全部</option>
                                <option value="20">普通发票</option>
                                <option value="10">增值税专用发票</option>
                            </select>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="col-3-1">
                        <div class="row">
                            <label class="form-label f-l lh-26 text-r w-60">提交时间：</label>
                            <div class="f-l ml-10">
                                <input onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'timemax\')||\'%y-%M-%d\'}',startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="input-text Wdate radius" id="timemin" type="text" placeholder="起始时间" style="width:116px;" >
                                ~
                                <input onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'timemin\')}',dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="input-text Wdate radius" id="timemax" type="text" placeholder="结束时间" style="width:116px;" >
                            </div>
                            <span class="Validform_checktip"></span>
                        </div>
                    </td>
                    <td class="col-3-1">
                        <div class="row">
                            <label class="form-label f-l lh-26 text-r w-60">客户名称：</label>
                            <div class="formControls f-l">
                                <input id="customer_name" type="text" class="input-text radius ml-10 w-150" placeholder="请输入客户名称">
                            </div>
                        </div>
                    </td>
                    <td class="col-3-1">
                        <div class="row">
                            <label class="form-label f-l lh-26 text-r w-60">订单来源：</label>
                         <!--   <select id="platform" class="select radius f-l ml-10 w-150" size="1" style="height: 30px;">
                                <option value="">全部</option>
                                <option value="10">普通平台</option>
                                <option value="20">签约平台</option>
                                <option value="40">对接平台</option>
                            </select>-->
                            <div class="input_box sel_box sel_box02 col-xs-8 col-sm-9">
                                <input  type="text" class="dataval input-text radius f-l w-180 kild" readonly>
                                <i class="icon_arrow"></i>
                                <span class="placeholder02"><span class="all-radius">全部</span></span>
                                <ul class="ulbox item" style="display: none">
                                    <li class=""><input type="checkbox" crmCustomerId="10,20,40"><p class="checkboxall">全选</p></li>
                                    <li class="lidata" crmCustomerId="10" crmCustomername="普通平台"><input type="checkbox" class="evetyipt"><span>普通平台</span></li>
                                    <li class="lidata" crmCustomerId="20" crmCustomername="签约平台" ><input type="checkbox" class="evetyipt"><span>签约平台</span></li>
                                    <li class="lidata" crmCustomerId="40" crmCustomername="对接平台"><input type="checkbox" class="evetyipt"><span>对接平台</span></li>
                                </ul>
                            </div>
                        </div>

                    </td>
                </tr>
                <tr>
                    <td class="col-3-1">
                        <div class="row">
                            <label class="form-label f-l lh-26 text-r w-60">销售归属：</label>
                            <div class="formControls f-l">
                                <input type="text" id="organization_name" class="input-text radius ml-10 w-200" placeholder="请输入客户归属">
                            </div>
                        </div>
                    </td>
                    <td class="col-3-1">
                        <div class="row">
                            <label class="form-label f-l lh-26 text-r w-60">发货仓：</label>
                            <select id="shippingWarehouse" class="select radius f-l ml-10 w-150" size="1" style="height: 30px;">
                                <option value="">全部</option>
                            </select>
                        </div>
                    </td>
                </tr>
                </thead>
            </table>
            <div class="text-c pb-20 pt-10">
                <input type="submit" class="btn btn-secondary radius size-S powerButton 146" value="搜&nbsp;&nbsp;索">
                <input name="" type="reset" onclick="resetDiv()" class="btn radius size-S ml-10 powerButton 146" value="重&nbsp;&nbsp;置">
                &nbsp;&nbsp;

                <a href="#" class="btn btn-secondary radius size-S ml-10 powerButton 149" id="js-export" onclick="derive(1)">导出</a></div>
        </div>
        <table class="table table-border table-bg table-hover table-sort mt-10" id="datatable">
            <thead>
            <tr class="text-c">
                <th class="w-100">订单号</th>
                <th>订单来源</th>
                <th class="w-200">客户名称</th>
                <th>销售归属</th>
                <th>发货仓</th>
                <th>订单状态</th>
                <th>提交时间</th>
                <th>订单生成时间</th>
                <th>支付金额（元）</th>
                <th>发票类型</th>
                <th>发票状态</th>
                <th>补开类型</th>
                <th>操作人</th>
                <th class="w-85">操作</th>
            </tr>
            </thead>
            <tbody class="shun">
            </tbody>
        </table>
        <div class="dataTables_wrapper goods_fanye clearfix mt-5">
            <div class="f-r pageturning M-box3"></div>
        </div>
        <div class="mt-40"></div>
        </div>
    </form>
</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../lib/jquery.jedate.min.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>

<!--引入分页-->
<link rel="stylesheet" href="../../../lib/pagination/pagination.css">
<script src="../../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../ht-js/warehouse.js?rev=@@hash"></script>
<!--页面JS-->
<script src="../../../ht-js/order/invoiceRefill.js?rev=@@hash"></script>
<script src="../../../ht-js/dynamicWarehouse.js?rev=@@hash"></script>
<!--权限控制-->
<script type="text/javascript" src="../../../ht-js/power.js?rev=@@hash"></script>
</body>
<script>
    $(function () {
        $("#coupon-add").Validform({
            tiptype: 2,
            callback: function (form) {
                reloadCouponTable();
                return false;
            }
        });
    });
    /*form表单重置函数*/
    function resetDiv() {
        var divEl = document.querySelectorAll(".Validform_checktip span")
        for (var i = 0; i < divEl.length; i++) {
            divEl[i].innerHTML = ""
        }
        /*重置分类中的级别*/
        goodslist_cantegory_id = "";
        category_id_of_search = "";//采销中的分类id
        category_code_of_search = "";//采销中的分类code
        /*图片中三级分类联动清空*/
        oneCategoryId = "";
        twoCategoryId = "";
        threeCategoryId = "";
        /*清空联动下拉框*/
        $("#classUlP1").html("");
        $("#classUlP2").html("");
        $("#classUlP3").html("");
        $("#img-classUl1").html("");
        $("#img-classUl2").html("");
        $("#img-classUl3").html("");
        var cer = "<option value=''>请选择收货位置</option>"
        $("#getPlace").html(cer);
    }


    $(function() {
        $("#brandSearchForm").Validform({
            tiptype: 2,
            callback: function(form) {
                brand_list(1, 50, $("#brandName").val());
                return false;
            }
        });
        $("#cxManage").Validform({
            tiptype: 2,
            callback: function(form) {
                cx_list();
                return false;
            }
        });
    })





    function  derive() {
        page_num= 1, //'页数',必传
            page_size= 50, //'数量',必传
            order_id=$("#order_id").val(), //订单号
            invoice_type=$("#invoice_type").val(), //发票类型
            invoice_status= $("#invoice_status").val(), //发票状态
            created_at_begin= $("#timemin").val(), //提交起始时间
            created_at_end= $("#timemax").val(), //提交终止时间
            customer_name= $("#customer_name").val(), //客户名称
            platform= $("#platform").val(), //订单来源平台
            warehouse_id=$("#shippingWarehouse option:selected").val(), //'仓库id'
            /*root.orderInter.exportExcel*//*https://'+ window.location.host +'/api/admin/aorder/inovice/excelImport?*/
            $('#js-export').attr('href',root.orderInter.exportExcel+'?'+'page_num='+''+page_num+''+'&page_size='+''+page_size+''+'&order_id='+''+order_id+''+'&invoice_type='+''+invoice_type+'&invoice_status='+''+invoice_status+'&created_at_begin='+''+created_at_begin+'&created_at_end='+''+created_at_end+'&customer_name='+''+customer_name+'&platform='+''+platform+'&warehouse_id='+''+warehouse_id);

        if(page_num=='' && page_size==''&& order_id==''&& invoice_type==''&& invoice_status==''&& created_at_begin==''&& created_at_end==''&& customer_name==''&& platform==''&& warehouse_id==''){
            $.Huimodalalert('请至少输入一个值！',2000);
            $('#js-export').removeAttr('href');
        }

    }

</script>
</html>